package com.dc.base.model;

public class BaseModel {
    //程序是否执行成功，code=1，程序执行成功，反之失败
    private  int code;
    //错误信息提示
    private String message;
    //数据源
    private  Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseModel{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data+
                '}';
    }
}
